
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>配置 · 博客API</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="yaohw">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="run.html" />
    
    
    <link rel="prev" href="prepare.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    安装
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="prepare.html">
            
                <a href="prepare.html">
            
                    
                    准备
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="config.html">
            
                <a href="config.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="run.html">
            
                <a href="run.html">
            
                    
                    运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../api/">
            
                <a href="../api/">
            
                    
                    接口文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../api/sms.html">
            
                <a href="../api/sms.html">
            
                    
                    发送验证码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../api/client/">
            
                <a href="../api/client/">
            
                    
                    客户端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../api/client/save.html">
            
                <a href="../api/client/save.html">
            
                    
                    保存客户端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../api/client/page.html">
            
                <a href="../api/client/page.html">
            
                    
                    分页获取客户端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.3" data-path="../api/client/delete.html">
            
                <a href="../api/client/delete.html">
            
                    
                    删除客户端
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../api/auth/">
            
                <a href="../api/auth/">
            
                    
                    认证
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../api/auth/account.html">
            
                <a href="../api/auth/account.html">
            
                    
                    账号密码登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../api/auth/mobile.html">
            
                <a href="../api/auth/mobile.html">
            
                    
                    手机号验证码登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.3" data-path="../api/auth/third.html">
            
                <a href="../api/auth/third.html">
            
                    
                    第三方登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.4" data-path="../api/auth/refresh.html">
            
                <a href="../api/auth/refresh.html">
            
                    
                    刷新access_token
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.5" data-path="../api/auth/logout.html">
            
                <a href="../api/auth/logout.html">
            
                    
                    退出
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../api/user/">
            
                <a href="../api/user/">
            
                    
                    用户
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1" data-path="../api/user/info.html">
            
                <a href="../api/user/info.html">
            
                    
                    获取用户信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="../api/user/register.html">
            
                <a href="../api/user/register.html">
            
                    
                    注册
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.3" data-path="../api/user/pwd-update.html">
            
                <a href="../api/user/pwd-update.html">
            
                    
                    修改密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4" data-path="../api/user/pwd-reset.html">
            
                <a href="../api/user/pwd-reset.html">
            
                    
                    重置密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.5" data-path="../api/user/avatar-update.html">
            
                <a href="../api/user/avatar-update.html">
            
                    
                    更换头像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.6" data-path="../api/user/update.html">
            
                <a href="../api/user/update.html">
            
                    
                    更新用户信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.7" data-path="../api/user/vemail.html">
            
                <a href="../api/user/vemail.html">
            
                    
                    邮箱验证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.8" data-path="../api/user/bemail.html">
            
                <a href="../api/user/bemail.html">
            
                    
                    邮箱绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.9" data-path="../api/user/vmobile.html">
            
                <a href="../api/user/vmobile.html">
            
                    
                    验证原手机号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.10" data-path="../api/user/bmobile.html">
            
                <a href="../api/user/bmobile.html">
            
                    
                    更换手机号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.11" data-path="../api/user/page.html">
            
                <a href="../api/user/page.html">
            
                    
                    分页获取用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.12" data-path="../api/user/status-update.html">
            
                <a href="../api/user/status-update.html">
            
                    
                    用户状态修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.13" data-path="../api/user/nmobile.html">
            
                <a href="../api/user/nmobile.html">
            
                    
                    绑定手机号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.14" data-path="../api/user/username.html">
            
                <a href="../api/user/username.html">
            
                    
                    绑定用户名
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../api/tag/">
            
                <a href="../api/tag/">
            
                    
                    标签
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../api/tag/add.html">
            
                <a href="../api/tag/add.html">
            
                    
                    新增标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.2" data-path="../api/tag/page.html">
            
                <a href="../api/tag/page.html">
            
                    
                    分页获取标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.3" data-path="../api/tag/list.html">
            
                <a href="../api/tag/list.html">
            
                    
                    获取标签列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.4" data-path="../api/tag/update.html">
            
                <a href="../api/tag/update.html">
            
                    
                    修改标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.5" data-path="../api/tag/delete.html">
            
                <a href="../api/tag/delete.html">
            
                    
                    删除标签
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../api/category/">
            
                <a href="../api/category/">
            
                    
                    分类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.6.1" data-path="../api/category/add.html">
            
                <a href="../api/category/add.html">
            
                    
                    新增分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.2" data-path="../api/category/page.html">
            
                <a href="../api/category/page.html">
            
                    
                    分页获取分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.3" data-path="../api/category/list.html">
            
                <a href="../api/category/list.html">
            
                    
                    获取分类列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.4" data-path="../api/category/tree.html">
            
                <a href="../api/category/tree.html">
            
                    
                    获取分类树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.5" data-path="../api/category/update.html">
            
                <a href="../api/category/update.html">
            
                    
                    修改分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.6" data-path="../api/category/delete.html">
            
                <a href="../api/category/delete.html">
            
                    
                    删除分类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../api/file/">
            
                <a href="../api/file/">
            
                    
                    文件存储
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.7.1" data-path="../api/file/upload.html">
            
                <a href="../api/file/upload.html">
            
                    
                    上传文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7.2" data-path="../api/file/delete.html">
            
                <a href="../api/file/delete.html">
            
                    
                    删除文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../api/article/">
            
                <a href="../api/article/">
            
                    
                    文章
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.8.1" data-path="../api/article/save.html">
            
                <a href="../api/article/save.html">
            
                    
                    保存文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.2" data-path="../api/article/page.html">
            
                <a href="../api/article/page.html">
            
                    
                    分页获取文章（后台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.3" data-path="../api/article/detail.html">
            
                <a href="../api/article/detail.html">
            
                    
                    文章详情（后台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.4" data-path="../api/article/f_page.html">
            
                <a href="../api/article/f_page.html">
            
                    
                    分页获取文章（前台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.5" data-path="../api/article/view.html">
            
                <a href="../api/article/view.html">
            
                    
                    文章详情（前台）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.6" data-path="../api/article/incrt_view.html">
            
                <a href="../api/article/incrt_view.html">
            
                    
                    文章浏览数自增
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.7" data-path="../api/article/interrelated.html">
            
                <a href="../api/article/interrelated.html">
            
                    
                    相关文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.8" data-path="../api/article/discard.html">
            
                <a href="../api/article/discard.html">
            
                    
                    丢弃文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.9" data-path="../api/article/delete.html">
            
                <a href="../api/article/delete.html">
            
                    
                    删除文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.10" data-path="../api/article/status.html">
            
                <a href="../api/article/status.html">
            
                    
                    修改文章状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.11" data-path="../api/article/archives.html">
            
                <a href="../api/article/archives.html">
            
                    
                    文章归档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.12" data-path="../api/article/tag_statistic.html">
            
                <a href="../api/article/tag_statistic.html">
            
                    
                    标签文章统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8.13" data-path="../api/article/c_statistic.html">
            
                <a href="../api/article/c_statistic.html">
            
                    
                    分类文章统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../api/recommend/">
            
                <a href="../api/recommend/">
            
                    
                    文章推荐
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.9.1" data-path="../api/recommend/save.html">
            
                <a href="../api/recommend/save.html">
            
                    
                    保存到推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.2" data-path="../api/recommend/delete.html">
            
                <a href="../api/recommend/delete.html">
            
                    
                    删除推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.3" data-path="../api/recommend/list.html">
            
                <a href="../api/recommend/list.html">
            
                    
                    获取推荐列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../api/like/">
            
                <a href="../api/like/">
            
                    
                    文章点赞
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.10.1" data-path="../api/like/add.html">
            
                <a href="../api/like/add.html">
            
                    
                    新增点赞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10.2" data-path="../api/like/cancel.html">
            
                <a href="../api/like/cancel.html">
            
                    
                    取消点赞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10.3" data-path="../api/like/if.html">
            
                <a href="../api/like/if.html">
            
                    
                    是否已点赞
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../api/comment/">
            
                <a href="../api/comment/">
            
                    
                    文章评论与回复
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.11.1" data-path="../api/comment/c_add.html">
            
                <a href="../api/comment/c_add.html">
            
                    
                    新增评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.2" data-path="../api/comment/c_delete.html">
            
                <a href="../api/comment/c_delete.html">
            
                    
                    删除评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.3" data-path="../api/comment/r_add.html">
            
                <a href="../api/comment/r_add.html">
            
                    
                    新增评论回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.4" data-path="../api/comment/r_delete.html">
            
                <a href="../api/comment/r_delete.html">
            
                    
                    删除评论回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.5" data-path="../api/comment/page.html">
            
                <a href="../api/comment/page.html">
            
                    
                    分页获取评论与回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11.6" data-path="../api/comment/latest.html">
            
                <a href="../api/comment/latest.html">
            
                    
                    最新评论列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../api/collect/">
            
                <a href="../api/collect/">
            
                    
                    文章收藏
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.12.1" data-path="../api/collect/add.html">
            
                <a href="../api/collect/add.html">
            
                    
                    新增收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12.2" data-path="../api/collect/page.html">
            
                <a href="../api/collect/page.html">
            
                    
                    分页获取收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12.3" data-path="../api/collect/delete.html">
            
                <a href="../api/collect/delete.html">
            
                    
                    删除收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12.4" data-path="../api/collect/if.html">
            
                <a href="../api/collect/if.html">
            
                    
                    是否已收藏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../api/message/">
            
                <a href="../api/message/">
            
                    
                    留言与回复
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.13.1" data-path="../api/message/add.html">
            
                <a href="../api/message/add.html">
            
                    
                    新增留言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.2" data-path="../api/message/r_add.html">
            
                <a href="../api/message/r_add.html">
            
                    
                    新增留言回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.3" data-path="../api/message/page.html">
            
                <a href="../api/message/page.html">
            
                    
                    分页回复留言与回复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.4" data-path="../api/message/latest.html">
            
                <a href="../api/message/latest.html">
            
                    
                    最新留言列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13.5" data-path="../api/message/delete.html">
            
                <a href="../api/message/delete.html">
            
                    
                    删除留言或回复
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="../api/friend/">
            
                <a href="../api/friend/">
            
                    
                    友链
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.14.1" data-path="../api/friend/save.html">
            
                <a href="../api/friend/save.html">
            
                    
                    保存友链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14.2" data-path="../api/friend/page.html">
            
                <a href="../api/friend/page.html">
            
                    
                    分页获取友链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14.3" data-path="../api/friend/list.html">
            
                <a href="../api/friend/list.html">
            
                    
                    友链列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14.4" data-path="../api/friend/delete.html">
            
                <a href="../api/friend/delete.html">
            
                    
                    删除友链
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../help/">
            
                <a href="../help/">
            
                    
                    帮助与反馈
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <!--<li>-->
        <!--<a href="https://www.gitbook.com" target="blank" class="gitbook-link">-->
            <!--本书使用 GitBook 发布-->
        <!--</a>-->
    <!--</li>-->
</ul>

                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h1>
<h2 id="&#x987B;&#x77E5;">&#x987B;&#x77E5;</h2>
<p>&#x9879;&#x76EE;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8DEF;&#x5F84;:blog-api/src/main/resources
<br>
&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E3A;&#x9636;&#x68AF;&#x5F0F;&#x5199;&#x6CD5;&#xFF0C;&#x662F;&#x914D;&#x7F6E;&#x7684;&#x4E00;&#x79CD;&#x7B80;&#x5316;&#x5199;&#x6CD5;,&#x5982;</p>
<pre><code>spring.test1=0
spring.test2=1
</code></pre><p>&#x5176;&#x9636;&#x68AF;&#x5F0F;&#x5199;&#x6CD5;&#x4E3A;:</p>
<pre><code>spring
    test1: 0
    test2: 1
</code></pre><p>&#x56E0;&#x6B64;&#xFF0C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x914D;&#x7F6E;&#x987A;&#x5E8F;&#x3001;&#x524D;&#x7A7A;&#x683C;&#x6709;&#x4E25;&#x683C;&#x7684;&#x8981;&#x6C42;&#xFF0C;&#x4E0D;&#x53EF;&#x968F;&#x610F;&#x66F4;&#x6539;&#x3002;
<br></p>
<h2 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E;">&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BF4;&#x660E;</h2>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x6709;&#x4E09;&#x4E2A;:</p>
<ul>
<li>application.yml</li>
<li>application-dev.yml</li>
<li>application-prod.yml</li>
</ul>
<p>application.yml&#x4E3A;&#x57FA;&#x7840;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;application-dev.yml&#x4E3A;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;application-prod.yml&#x4E3A;&#x751F;&#x4EA7;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;
application.yml&#x65E0;&#x8BBA;&#x4F55;&#x79CD;&#x73AF;&#x5883;&#x90FD;&#x4F1A;&#x542F;&#x7528;&#xFF0C;&#x800C;application-dev.yml&#x548C;application-prod.yml
&#x81F3;&#x4E8E;&#x542F;&#x52A8;&#x54EA;&#x4E2A;&#x53D6;&#x51B3;&#x4E8E;application.yml&#x4E2D;&#x7684;spring.profiles.active&#x914D;&#x7F6E;&#x3002;
<br>
&#x542F;&#x7528;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x6817;&#x5B50;:</p>
<pre><code>spring:
  profiles:
    active:
      - dev
</code></pre><p>&#x5982;&#x9700;&#x5207;&#x6362;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x5C06;dev&#x6539;&#x4E3A;prod&#x5373;&#x53EF;&#x3002;
<br>
application.yml&#x6587;&#x4EF6;&#x9664;&#x4E86;spring.profiles.active&#x770B;&#x60C5;&#x51B5;&#x8C03;&#x6574;&#x4FEE;&#x6539;&#xFF0C;&#x5176;&#x4ED6;&#x5730;&#x65B9;&#x4E0D;&#x5EFA;&#x8BAE;&#x4FEE;&#x6539;&#x3002;</p>
<h2 id="&#x7AEF;&#x53E3;&#x914D;&#x7F6E;">&#x7AEF;&#x53E3;&#x914D;&#x7F6E;</h2>
<pre><code>server:
  port: 9090
</code></pre><h2 id="redis&#x914D;&#x7F6E;">redis&#x914D;&#x7F6E;</h2>
<p>&#x914D;&#x7F6E;host&#x3001;port&#x3001;password&#x4E09;&#x9879;&#xFF0C;&#x6CA1;&#x6709;&#x5BC6;&#x7801;&#x5C31;&#x7A7A;&#x7740;,&#x5176;&#x4ED6;&#x9ED8;&#x8BA4;&#x5373;&#x53EF;&#x3002;</p>
<pre><code>  redis:
    host: 127.0.0.1
    port: 6379
    password:
</code></pre><h2 id="mysql&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;">mysql&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;</h2>
<p>&#x4E3B;&#x8981;&#x914D;&#x7F6E;&#x4E0B;&#x7684;url&#x3001;username&#x3001;password&#xFF0C;&#x5176;&#x4ED6;&#x9ED8;&#x8BA4;&#x5373;&#x53EF;&#x3002;</p>
<pre><code>  datasource:
    url: jdbc:mysql://127.0.0.1:3306/blog_db?useSSL=false
    username: root
    password: root
</code></pre><h2 id="druid&#x6570;&#x636E;&#x5E93;&#x76D1;&#x63A7;&#x914D;&#x7F6E;">druid&#x6570;&#x636E;&#x5E93;&#x76D1;&#x63A7;&#x914D;&#x7F6E;</h2>
<p>&#x9879;&#x76EE;&#x63A5;&#x5165;&#x963F;&#x91CC;druid&#x6570;&#x636E;&#x5E93;&#x76D1;&#x63A7;&#x7EC4;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;web&#x7684;&#x5F62;&#x5F0F;&#x67E5;&#x770B;&#x6570;&#x636E;&#x5E93;sql&#x8BED;&#x53E5;&#x7B49;&#x4FE1;&#x606F;&#x3002;
<br>
&#x8BBF;&#x95EE;&#x8DEF;&#x5F84;:<code>http://{host}:{port}/druid/index.html</code>
<br>
&#x8BBF;&#x95EE;&#x7684;&#x65F6;&#x5019;&#x9700;&#x8981;&#x8F93;&#x5165;&#x7528;&#x6237;&#x540D;&#x548C;&#x5BC6;&#x7801;&#xFF0C;&#x8FD9;&#x91CC;&#x7684;&#x7528;&#x6237;&#x540D;&#x548C;&#x5BC6;&#x7801;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>        login-username: admin
        login-password: password
</code></pre><p>&#x7528;&#x6237;&#x540D;&#x548C;&#x5BC6;&#x7801;&#x6CA1;&#x4EC0;&#x4E48;&#x7279;&#x522B;&#x7684;&#x8981;&#x6C42;&#xFF0C;&#x53EF;&#x81EA;&#x884C;&#x914D;&#x7F6E;&#x3002;</p>
<h2 id="&#x7CFB;&#x7EDF;&#x90AE;&#x7BB1;&#x914D;&#x7F6E;">&#x7CFB;&#x7EDF;&#x90AE;&#x7BB1;&#x914D;&#x7F6E;</h2>
<p>&#x9879;&#x76EE;&#x7684;&#x90AE;&#x7BB1;&#x914D;&#x7F6E;&#x8DDF;Foxmail&#x7684;&#x90AE;&#x7BB1;&#x914D;&#x7F6E;&#x5DEE;&#x4E0D;&#x591A;&#xFF0C;&#x6CA1;&#x7528;&#x8FC7;Foxmail&#x7684;&#x4F19;&#x4F34;&#x4E5F;&#x53EF;&#x4EE5;&#x4E86;&#x89E3;&#x4E0B;&#xFF0C;&#x633A;&#x597D;&#x7528;&#x7684;&#x4E00;&#x4E2A;&#x90AE;&#x4EF6;&#x6536;&#x53D1;&#x8F6F;&#x4EF6;&#x3002;
<br>
&#x6CE8;&#x610F;&#x4E00;&#x70B9;&#xFF0C;password&#x4E3A;&#x6388;&#x6743;&#x7801;&#xFF0C;&#x6CA1;&#x6709;&#x7279;&#x522B;&#x8BF4;&#x660E;&#xFF0C;&#x5BC6;&#x7801;&#x5373;&#x4E3A;&#x6388;&#x6743;&#x7801;&#x3002;&#x534F;&#x8BAE;&#x3001;&#x7AEF;&#x53E3;&#x7B49;&#x4FE1;&#x606F;&#x5230;&#x5BF9;&#x5E94;&#x7684;&#x90AE;&#x7BB1;&#x5E73;&#x53F0;&#x67E5;&#x9605;&#x3002;</p>
<pre><code>  mail:
    host: smtp.163.com
    port: 25
    username: xxx@163.com
    password: password
    protocol: smtp
    default-encoding: UTF-8
    jndi-name: &#x4E2A;&#x4EBA;&#x9605;&#x8BFB;&#x5206;&#x4EAB;
</code></pre><p>&#x793A;&#x4F8B;&#x6548;&#x679C;&#xFF1A;
<br>
<a href="http://qiniu.poile.cn/email_config.png" data-lightbox="0b30df1d-3fcc-451d-b8f1-47940f0c172d" data-title="&#x56FE;&#x7247;" target="_blank"><img src="http://qiniu.poile.cn/email_config.png" alt="&#x56FE;&#x7247;"></a></p>
<h2 id="&#x5B58;&#x50A8;&#x914D;&#x7F6E;">&#x5B58;&#x50A8;&#x914D;&#x7F6E;</h2>
<p>&#x5B58;&#x50A8;&#x914D;&#x7F6E;&#x4E3A;&#x591A;&#x9009;&#x4E00;&#x914D;&#x7F6E;&#xFF0C;4&#x79CD;&#x5B58;&#x50A8;&#x65B9;&#x5F0F;&#x9009;&#x62E9;&#x5176;&#x4E00;&#x8FDB;&#x884C;&#x914D;&#x7F6E;&#x5373;&#x53EF;&#xFF1A;</p>
<ul>
<li>&#x672C;&#x5730;&#x5B58;&#x50A8;[1]</li>
<li>&#x4E03;&#x725B;&#x4E91;&#x5B58;&#x50A8;[2]</li>
<li>&#x7F51;&#x6613;&#x4E91;&#x5B58;&#x50A8;[3]</li>
<li>&#x963F;&#x91CC;&#x4E91;&#x5B58;&#x50A8;[4]</li>
</ul>
<p>&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x963F;&#x91CC;&#x4E91;&#x5B58;&#x50A8;&#x6817;&#x5B50;:</p>
<pre><code>oss:
  type: 4
  ali:
    accessKeyId: accessKeyId
    accessKeyIdSecret: accessKeyIdSecret
    bucket: poile
    endpoint: oss-cn-shenzhen.aliyuncs.com
</code></pre><blockquote>
<p>[!TIP]
type&#x7684;&#x7C7B;&#x578B;&#x8DDF;&#x914D;&#x7F6E;&#x9700;&#x4E00;&#x4E00;&#x5BF9;&#x5E94;&#xFF01;</p>
</blockquote>
<h2 id="&#x77ED;&#x4FE1;&#x9A8C;&#x8BC1;&#x7801;&#x914D;&#x7F6E;">&#x77ED;&#x4FE1;&#x9A8C;&#x8BC1;&#x7801;&#x914D;&#x7F6E;</h2>
<p>type&#x9884;&#x7559;&#x914D;&#x7F6E;&#x5B57;&#x6BB5;&#xFF0C;&#x9ED8;&#x8BA4;1&#x5373;&#x53EF;&#xFF0C;expire&#x4E3A;&#x9A8C;&#x8BC1;&#x7801;&#x6709;&#x6548;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x4E3A;&#x79D2;&#xFF0C;day_max&#x4E3A;&#x77ED;&#x4FE1;&#x9A8C;&#x8BC1;&#x7801;&#x53D1;&#x9001;&#x63A5;&#x53E3;&#x4E00;&#x5929;&#x5185;&#x540C;&#x4E00;&#x624B;&#x673A;&#x53F7;&#xFF08;ip&#x9650;&#x5236;&#x4E5F;&#x662F;&#x53D6;&#x8FD9;&#x4E2A;&#x503C;&#xFF09;&#x53D1;&#x9001;&#x9A8C;&#x8BC1;&#x7801;&#x9650;&#x5236;&#x6B21;&#x6570;&#x3002;
regionId&#x56FA;&#x5B9A;cn-hangzhou&#x5373;&#x53EF;&#x3002;</p>
<pre><code>sms:
  type: 1
  expire: 300
  day_max: 10
  ali:
    regionId: cn-hangzhou
    accessKeyId: &#x4F60;&#x7684;accessKeyId
    accessKeySecret: &#x4F60;&#x7684;accessKeySecret
    signName: &#x4F60;&#x7684;&#x7B7E;&#x540D;
    templateCode: &#x6A21;&#x677F;code
</code></pre><h2 id="&#x90AE;&#x7BB1;&#x5916;&#x94FE;&#x914D;&#x7F6E;">&#x90AE;&#x7BB1;&#x5916;&#x94FE;&#x914D;&#x7F6E;</h2>
<p>&#x90AE;&#x7BB1;&#x7ED1;&#x5B9A;&#x3001;&#x6587;&#x7AE0;&#x8BC4;&#x8BBA;&#x7B49;&#x4F1A;&#x53D1;&#x9001;html&#x90AE;&#x4EF6;&#x5230;&#x5BF9;&#x5E94;&#x7528;&#x6237;&#x90AE;&#x7BB1;&#xFF0C;&#x70B9;&#x51FB;&#x90AE;&#x7BB1;&#x4E2D;&#x94FE;&#x63A5;&#x4F1A;&#x8DF3;&#x8F6C;&#x5230;&#x76F8;&#x5173;&#x9875;&#x9762;&#x3002;
&#x90AE;&#x4EF6;&#x91CC;&#x7684;&#x94FE;&#x63A5;&#x5C31;&#x662F;&#x5728;&#x8FD9;&#x91CC;&#x914D;&#x7F6E;&#x7684;,&#x5982;&#x4F55;&#x914D;&#x7F6E;&#x53D6;&#x51B3;&#x4E8E;&#x4F60;&#x7684;&#x57DF;&#x540D;&#x548C;&#x524D;&#x7AEF;&#x5BF9;&#x5E94;&#x9875;&#x9762;&#x8DEF;&#x5F84;&#x3002;</p>
<pre><code>mail:
  check: http://www.poile.cn/email/verify
  article: http://www.poile.cn/article/#/
  message: http://www.poile.cn/message
</code></pre><p>&#x4E09;&#x4E2A;&#x94FE;&#x63A5;&#x7684;&#x4F5C;&#x7528;: </p>
<ol>
<li>&#x7ED1;&#x5B9A;&#x90AE;&#x7BB1;&#x90AE;&#x7BB1;&#x9A8C;&#x8BC1;&#x94FE;&#x63A5;&#xFF0C;&#x94FE;&#x63A5;&#x540E;&#x9762;&#x4F1A;&#x5E26;&#x4E00;&#x4E2A;code&#x53C2;&#x6570;&#xFF0C;&#x524D;&#x7AEF;&#x62FF;&#x5230;&#x8FD9;code&#x540E;&#x8C03;&#x7528;&#x90AE;&#x7BB1;&#x7ED1;&#x5B9A;&#x63A5;&#x53E3;&#x8FDB;&#x884C;&#x90AE;&#x7BB1;&#x7ED1;&#x5B9A;&#x3002;</li>
<li>&#x6587;&#x7AE0;&#x8BC4;&#x8BBA;&#x6216;&#x6587;&#x7AE0;&#x8BC4;&#x8BBA;&#x56DE;&#x590D;&#x90AE;&#x4EF6;&#x63D0;&#x9192;&#x94FE;&#x63A5;&#xFF0C;&#x70B9;&#x51FB;&#x8DF3;&#x8F6C;&#x5230;&#x6587;&#x7AE0;&#x8BE6;&#x60C5;&#x9875;&#xFF0C;&#x8FD9;&#x91CC;&#x914D;&#x7F6E;&#x7684;&#x5C31;&#x662F;&#x6587;&#x7AE0;&#x8BE6;&#x60C5;&#x9875;&#x7684;&#x524D;&#x7F00;&#xFF0C;&#x540E;&#x9762;&#x4F1A;&#x62FC;&#x63A5;&#x5BF9;&#x5E94;&#x7684;&#x6587;&#x7AE0;id</li>
<li>&#x7559;&#x8A00;&#x6216;&#x7559;&#x8A00;&#x56DE;&#x590D;&#x90AE;&#x4EF6;&#x63D0;&#x9192;&#x94FE;&#x63A5;&#xFF0C;&#x70B9;&#x51FB;&#x8DF3;&#x8F6C;&#x5230;&#x7559;&#x8A00;&#x9875;&#x9762;&#x3002;</li>
</ol>
<h2 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5916;&#x7F6E;">&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5916;&#x7F6E;</h2>
<p>&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x53EF;&#x4EE5;&#x5916;&#x7F6E;&#xFF0C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x53EF;&#x4EE5;&#x5916;&#x7F6E;&#x5728;jar&#x540C;&#x7EA7;&#x76EE;&#x5F55;&#x4E0B;&#x6216;jar&#x540C;&#x7EA7;&#x76EE;&#x5F55;&#x4E0B;config&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x7A0B;&#x5E8F;&#x542F;&#x52A8;&#x65F6;&#x4F1A;&#x5728;&#x7A0B;&#x5E8F;&#x540C;&#x7EA7;&#x76EE;&#x5F55;&#x4E0B;
&#x627E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x540C;&#x7EA7;&#x76EE;&#x5F55;&#x627E;&#x4E0D;&#x5230;&#x4F1A;&#x518D;&#x53BB;&#x540C;&#x7EA7;&#x76EE;&#x5F55;&#x4E0B;config&#x76EE;&#x5F55;&#x4E0B;&#x627E;&#xFF0C;&#x5982;&#x679C;&#x90FD;&#x627E;&#x4E0D;&#x5230;&#x5219;&#x4F1A;&#x7528;&#x7A0B;&#x5E8F;&#x6253;&#x5305;&#x65F6;&#x7684;&#x5185;&#x7F6E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;<br>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5916;&#x7F6E;&#x7684;&#x597D;&#x5904;&#x5728;&#x4E8E;&#xFF0C;&#x5982;&#x679C;&#x53EA;&#x662F;&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x53EA;&#x9700;&#x4FEE;&#x6539;&#x5916;&#x7F6E;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x7136;&#x540E;&#x91CD;&#x65B0;&#x670D;&#x52A1;&#x5373;&#x53EF;&#xFF0C;&#x6BD4;&#x5185;&#x7F6E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5C11;&#x4E86;&#x5230;&#x7A0B;&#x5E8F;&#x6E90;&#x7801;&#x90A3;&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x518D;&#x6B21;&#x6253;&#x5305;&#x7684;&#x8FC7;&#x7A0B;&#x3002;</p>
<pre><code class="lang-shell">blog-api-1.0.jar  config/

config/application-dev.yml
config/application-prod.yml
config/application.yml
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="prepare.html" class="navigation navigation-prev " aria-label="Previous page: 准备">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="run.html" class="navigation navigation-next " aria-label="Next page: 运行">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"配置","level":"1.2.2","depth":2,"next":{"title":"运行","level":"1.2.3","depth":2,"path":"install/run.md","ref":"install/run.md","articles":[]},"previous":{"title":"准备","level":"1.2.1","depth":2,"path":"install/prepare.md","ref":"install/prepare.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github","-sharing","splitter","expandable-chapters-small","code","flexible-alerts","lightbox"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/copoile/blog-api.git"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"lightbox":{"jquery":true,"sameUuid":false},"expandable-chapters-small":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"callout","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"yaohw","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"INTRODUCE.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"博客API","language":"zh-hans","gitbook":"*","description":"介绍博客API系统及接口API详细介绍。"},"file":{"path":"install/config.md","mtime":"2020-06-14T14:54:49.134Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-06-16T05:56:45.485Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

